/*******************************************************************************
* Copyright (c) 2010, 2018 西安秦晔信息科技有限公司
* Licensed under the Apache License, Version 2.0 (the "License");
*    you may not use this file except in compliance with the License.
*    You may obtain a copy of the License at
*
*       http://www.apache.org/licenses/LICENSE-2.0
*
*    Unless required by applicable law or agreed to in writing, software
*    distributed under the License is distributed on an "AS IS" BASIS,
*    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*    See the License for the specific language governing permissions and
*    limitations under the License.
*******************************************************************************/
package com.qinyeit.serviceapp.entity;

import lombok.Builder;
import lombok.experimental.Tolerate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * ClassName: DishesPackageGroup <br/>
 * Function: 套餐菜品分组 <br/>
 * date: 2018-11-23 13:43:21 <br/>
 *
 * @author liuwenjin
 * @version  1.0
 * @since JDK 1.8
 */
@Builder
@Entity
@Table(name="dishes_package_groups")
public class DishesPackageGroup extends MerchantGroupBaseEntity<Long> {

	private static final long serialVersionUID = 1L;

	// 套餐id 
    @Column(name="pack_id")
	private Long packId = null;

	// 分组名称 
    @Column(name="name", length = 300)
	private String name = null;

	// 菜品总数量 
    @Column(name="total")
	private Integer total = null;

	// 可选数量 
    @Column(name="count")
	private Integer count = null;

	// 重复选择 
    @Column(name="has_repeat")
	private Boolean hasRepeat = null;




	@Tolerate
	public DishesPackageGroup() {
		
	}
    @Tolerate
	public DishesPackageGroup(Long id){
    	super.setId(id);
    }
	
	/**
	 * 获取套餐id
	 */
	public Long getPackId() {
		return this.packId;
	}

    /**
     * 设置套餐id
     */
	public DishesPackageGroup setPackId(Long packId) {
		this.packId = packId;
		return this;
	}

	/**
	 * 获取分组名称
	 */
	public String getName() {
		return this.name;
	}

    /**
     * 设置分组名称
     */
	public DishesPackageGroup setName(String name) {
		this.name = name;
		return this;
	}

	/**
	 * 获取菜品总数量
	 */
	public Integer getTotal() {
		return this.total;
	}

    /**
     * 设置菜品总数量
     */
	public DishesPackageGroup setTotal(Integer total) {
		this.total = total;
		return this;
	}

	/**
	 * 获取可选数量
	 */
	public Integer getCount() {
		return this.count;
	}

    /**
     * 设置可选数量
     */
	public DishesPackageGroup setCount(Integer count) {
		this.count = count;
		return this;
	}

	/**
	 * 获取重复选择
	 */
	public Boolean getHasRepeat() {
		return this.hasRepeat;
	}

    /**
     * 设置重复选择
     */
	public DishesPackageGroup setHasRepeat(Boolean hasRepeat) {
		this.hasRepeat = hasRepeat;
		return this;
	}

}
